#include "iwebbot.hpp"
#include <iostream>

bool iwebbot::is_first_change = true;


dispatch_struct iwebbot::get_dispatch_struct() const
{
		return _dispatch_struct;
}

iwebbot::iwebbot(const char* dispatch_struct_filename): 
_dispatch_struct(dispatch_struct_filename)
{ }



bool iwebbot::get_next_dispatch_struct()
{
	if(!_dispatch_struct.get_next_dispatch_filename().empty())
	{
		std::string filename = _dispatch_struct.get_next_dispatch_filename(); 
		dispatch_struct next(filename);
		_dispatch_struct = next;

		std::cout << next << std::endl;

		return true;
	}
	return false;
}